import requests

import app


class LoginApi():
    def __init__(self):
        self.login_url = "http://ihrm-test.itheima.net/api/sys/login"
        self.header = {"Content-Type": "application/json"}

    def login(self,data):
        return requests.post(url=self.login_url, json=data, headers=app.header)